package com.web.model;

import java.io.Serializable;
import java.lang.Long;
import java.lang.String;
import java.lang.Double;
import java.util.Date;

/**
 * 用户资金记录实体</p>
 * TUserBalanceRecord对应数据库表 tb_user_balance_record
 * @author wzy
 * @project web-model
 */
public class TUserBalanceRecord implements Serializable {

	private static final long serialVersionUID = 1L;
	
	//主键字段
	private Long balanceId;//  balance_id
	
	private Long balanceType;// 资金变动类型：1 充值，2 下单，3 开奖收益， 4 提现 balance_type
	
	private String balanceContext;// 资金变动备注 balance_context
	
	private Double balance;// 变动金额 balance
	
	private Date balanceDate;// 时间 balance_date
	
	private Long userId;// 用户id user_id
	
	private Long opterId;// 操作人id，系统为0 opter_id
	
	private String userName;
	
	private String operName;
	
	private String userNo;
	
	//set 和 get方法
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOperName() {
		return operName;
	}

	public void setOperName(String operName) {
		this.operName = operName;
	}

	/**
	 * 
	 * @param balanceId
	 */
	public void setBalanceId(Long balanceId){
	
		this.balanceId=balanceId;
	}
	
	/**
	 * 
	 * @return Long
	 */
	public Long getBalanceId(){
	
		return this.balanceId;
	}
	
	/**
	 * 资金变动类型：1 充值，2 下单，3 开奖收益， 4 提现
	 * @param balanceType
	 */
	public void setBalanceType(Long balanceType){
	
		this.balanceType=balanceType;
	}
	
	/**
	 * 资金变动类型：1 充值，2 下单，3 开奖收益， 4 提现
	 * @return Long
	 */
	public Long getBalanceType(){
	
		return this.balanceType;
	}
	
	/**
	 * 资金变动备注
	 * @param balanceContext
	 */
	public void setBalanceContext(String balanceContext){
		this.balanceContext=balanceContext;
	}
	
	/**
	 * 资金变动备注
	 * @return String
	 */
	public String getBalanceContext(){
	
		return this.balanceContext;
	}
	
	/**
	 * 变动金额
	 * @param balance
	 */
	public void setBalance(Double balance){
	
		this.balance=balance;
	}
	
	/**
	 * 变动金额
	 * @return Double
	 */
	public Double getBalance(){
	
		return this.balance;
	}
	
	/**
	 * 时间
	 * @param balanceDate
	 */
	public void setBalanceDate(Date balanceDate){
	
		this.balanceDate=balanceDate;
	}
	
	/**
	 * 时间
	 * @return Date
	 */
	public Date getBalanceDate(){
	
		return this.balanceDate;
	}
	
	/**
	 * 用户id
	 * @param userId
	 */
	public void setUserId(Long userId){
	
		this.userId=userId;
	}
	
	/**
	 * 用户id
	 * @return Long
	 */
	public Long getUserId(){
	
		return this.userId;
	}
	
	/**
	 * 操作人id，系统为0
	 * @param opterId
	 */
	public void setOpterId(Long opterId){
	
		this.opterId=opterId;
	}
	
	/**
	 * 操作人id，系统为0
	 * @return Long
	 */
	public Long getOpterId(){
	
		return this.opterId;
	}
	
	
	@Override
	public String toString() {
		
		return "TUserBalanceRecord [balanceId="+balanceId+",balanceType="+balanceType+",balanceContext="+balanceContext+",balance="+balance+",balanceDate="+balanceDate+",userId="+userId+",opterId="+opterId+"]";
	}

	public String getUserNo() {
		return userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}
}
